package com.shujia.day03;

public class SwitchTest2 {
    public static void main(String[] args) {
        int x = 2;
        int y = 3;
        switch(x){
            default:
                y++; // 4
            case 3:
                y++; // 5
            case 4:
                y++; // 6
        }
        System.out.println("y="+y); // 6

    }
}
